<?php

/**
 * Campanha form.
 *
 * @package    siscampanha
 * @subpackage form
 * @author     Alexandre Haguiar
 */
class CampanhaForm extends BaseCampanhaForm {

    public function configure() {
        unset(
                $this['recurso_list']
        );

        $this->widgetSchema['ano'] = new sfWidgetFormChoice(array(
                    'choices' => array(2011 => 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020),
                    'expanded' => false,
                ));
        $this->widgetSchema['data_eleicoes'] = new sfWidgetFormJQueryDate(array(
                    'config' => '{}',
                ));

        $this->widgetSchema['cargo_id'] = new sfWidgetFormPropelChoice(array('model' => 'Cargo'));
        $this->widgetSchema['candidato_id'] = new sfWidgetFormInputHidden(array(), array("value" => "1"));
    }

}
